﻿<Window x:Class="sptm2013.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SharePoint 2013 Taxonomy Backup and Replication v1.0" Height="820" Width="1100" MinWidth="960" MinHeight="780">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1.4*" MaxWidth="430"/>
            <ColumnDefinition Width="2*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="22"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Menu Grid.ColumnSpan="2">
            <MenuItem Header="File">
                <MenuItem Header="Save Connection Properties" Click="MenuSaveConnectionProperties_Click" />
                <MenuItem Header="Exit" Click="MenuFileExit_Click" />
            </MenuItem>
            <MenuItem Header="Tools">
                <MenuItem Header="Load from CSV" Click="LoadFromCSV_Click" />
            </MenuItem>
            <MenuItem Header="Help">
                <MenuItem Header="About" Click="MenuAbout_Click" />
            </MenuItem>
        </Menu>
        <DockPanel Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Margin="10,10,10,0">
            <Button Padding="8" 
                    IsDefault="{Binding ElementName= QueryTextBox, Path=IsKeyboardFocused}"
                    Name="RunButton"
                    Margin="10,0,10,0" 
                    Click="ConnectButton_Click"
                    Width="100">Connect</Button>
            <Separator Width="10" />
            <TextBox Name="ConnectUriStringTextBox" TextWrapping="Wrap" IsReadOnly="False" IsReadOnlyCaretVisible="True" Margin="10,0,10,0" Padding="8" Foreground="#FF0009C3" />
        </DockPanel>
        <DockPanel Grid.Row="2" Grid.ColumnSpan="2" Grid.Column="0" Margin="10,10,10,0">
            <TextBlock Name="TextBlockLog" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True" >
                
            </TextBlock>
        </DockPanel>
        <StackPanel Grid.Row="3" Grid.ColumnSpan="2" Grid.Column="0">
            <StatusBar Margin="10,0,10,0" Background="{x:Null}" BorderBrush="Gray">
                <StatusBar.ItemsPanel>
                    <ItemsPanelTemplate>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                        </Grid>
                    </ItemsPanelTemplate>
                </StatusBar.ItemsPanel>
                <StatusBarItem>
                    <DockPanel>
                        <TextBlock Name="StateBarTextBlock" Text="Ready"></TextBlock>
                        <ProgressBar Name="ProgressBar" Value="0" Width="100" Visibility="Hidden" IsIndeterminate="False" Orientation="Horizontal" Height="18" Margin="15,0,0,0"/>
                    </DockPanel>
                </StatusBarItem>
            </StatusBar>
        </StackPanel>
    </Grid>
</Window>
